From e4b84d37062daa5edc11966a159fd43e96663a15 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 14 May 2005 05:38:01 +0000 Subject: [PATCH] allow people with the "protect" privilege to unprotect pages with "sysop" restriction --- includes/Title.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Title.php b/includes/Title.php index 288a5f2f65..f663096094 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -863,6 +863,10 @@ class Title { } foreach( $this->getRestrictions($action) as $right ) { + // Backwards compatibility, rewrite sysop -> protect + if ( $right == 'sysop' ) { + $right = 'protect'; + } if( '' != $right && !$wgUser->isAllowed( $right ) ) { wfProfileOut( $fname ); return false; -- 2.20.1